/**
 * 抖音关注：程序员三丙
 * 知识星球：https://t.zsxq.com/j9b21
 */
package sanbing.example.dylike.domain;

import com.google.common.util.concurrent.ListenableFuture;

import java.time.Duration;
import java.util.UUID;

public interface LikeCacheGateway {

    Duration DEFAULT_EXPIRE = Duration.ofDays(1);

    void write(UUID vId, Integer likeNum);

    ListenableFuture<Integer> read(UUID vId);

    int total();
}